package com.finger.forest.model;

import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.io.Serializable;

/**
 * @author sy
 * @date 2021/1/30
 * @desc
 */
public class BaseCommonResourceModel implements Serializable, MultiItemEntity {
    public static final int TYPE_PRENT = 0x001; //父类
    public static final int TYPE_CHILD = 0x002; //子类

    private ResourceTypeModel resourceTypeModel;

    private ResourceTypeModel.ChildrenBean childrenBean;

    public void setType(int type) {
        this.type = type;
    }

    private int type;

    public ResourceTypeModel getResourceTypeModel() {
        return resourceTypeModel;
    }

    public void setResourceTypeModel(ResourceTypeModel resourceTypeModel) {
        this.resourceTypeModel = resourceTypeModel;
    }

    public ResourceTypeModel.ChildrenBean getChildrenBean() {
        return childrenBean;
    }

    public void setChildrenBean(ResourceTypeModel.ChildrenBean childrenBean) {
        this.childrenBean = childrenBean;
    }

    @Override
    public int getItemType() {
        return type;
    }
}
